import { Controller, GET, Params } from "../../lib/server";

@Controller('/role')
export default class RoleController{

    @GET('/list')
    list(@Params('name','unknow') name:string){
        return new Array(parseInt(Math.random() * 10 + '')).fill(0).map((_,idx)=>({
            id:idx,
            time:new Date(),
            name:name+'_'+idx
        }))
    }

}